package moc.egg;
import moc.compiler.*;
import moc.tds.*;
import moc.type.*;
import moc.gc.*;
import java.util.*;
import mg.egg.eggc.runtime.libjava.lex.*;
import mg.egg.eggc.runtime.libjava.*;
import mg.egg.eggc.runtime.libjava.messages.*;
import mg.egg.eggc.runtime.libjava.problem.IProblem;
import java.util.Vector;
public class S_A_MOC {
LEX_MOC scanner;
  S_A_MOC() {
    }
  S_A_MOC(LEX_MOC scanner, boolean eval) {
    this.scanner = scanner;
    this.att_eval = eval;
    this.att_scanner = scanner;
    }
int [] sync= new int[0];
  boolean att_gauche;
  boolean att_isAff;
  boolean att_eval;
  String att_code;
  IMachine att_machine;
  DTYPE att_type;
  TDS att_tds;
  LEX_MOC att_scanner;
  private void regle32() throws Exception {

    //declaration
    S_R_MOC x_2 = new S_R_MOC(scanner,att_eval) ;
    S_AX_MOC x_4 = new S_AX_MOC(scanner,att_eval) ;
    //appel
if  (att_eval)      action_auto_inh_32(x_2, x_4);
    x_2.analyser() ;
if  (att_eval)      action_htype_32(x_2, x_4);
    x_4.analyser() ;
if  (att_eval)      action_type_32(x_2, x_4);
  }
private void action_type_32(S_R_MOC x_2, S_AX_MOC x_4) throws Exception {
try {
// instructions
this.att_isAff=x_2.att_isAff&&x_4.att_isAff;
this.att_code=x_2.att_code+x_4.att_code;
this.att_type=x_4.att_stype;
}catch(RuntimeException e) {       att_scanner._interrompre(IProblem.Internal,att_scanner.getBeginLine(),ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,new Object[] { "MOC", "#type","A -> R #htype AX #type ;"});
}
  }
private void action_htype_32(S_R_MOC x_2, S_AX_MOC x_4) throws Exception {
try {
// instructions
x_4.att_htype=x_2.att_type;
}catch(RuntimeException e) {       att_scanner._interrompre(IProblem.Internal,att_scanner.getBeginLine(),ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,new Object[] { "MOC", "#htype","A -> R #htype AX #type ;"});
}
  }
private void action_auto_inh_32(S_R_MOC x_2, S_AX_MOC x_4) throws Exception {
try {
// instructions
x_2.att_tds=this.att_tds;
x_4.att_tds=this.att_tds;
x_2.att_gauche=this.att_gauche;
x_4.att_gauche=this.att_gauche;
x_2.att_machine=this.att_machine;
x_4.att_machine=this.att_machine;
}catch(RuntimeException e) {       att_scanner._interrompre(IProblem.Internal,att_scanner.getBeginLine(),ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,new Object[] { "MOC", "#auto_inh","A -> R #htype AX #type ;"});
}
  }
  public void analyser () throws Exception {
    regle32 () ;
  }
  }
